#ifndef _SHAPES_H_
#define _SHAPES_H_

struct SPoint
{
public:
    long  x, y;
	SPoint():x(0), y(0){}
	SPoint(long rx, long ry):x(rx), y(ry){}
};

struct SRect
{
public:
	int x, y, w, h;
	SRect():x(0), y(0), w(0), h(0){}
	SRect(int rx, int ry, int rw, int rh):x(rx), y(ry), w(rw), h(rh){}
	SRect(const SRect& r)
	{
		x = r.x;
		y = r.y;
		w = r.w;
		h = r.h;
	}
	SRect& operator= (const SRect &r)
	{
		x = r.x;
		y = r.y;
		w = r.w;
		h = r.h;
		return *this;
	}
	SRect& set(int rx, int ry, int rw, int rh)
	{
		x = rx;
		y = ry;
		w = rw;
		h = rh;
		return *this;
	}
};
#endif //_SHAPES_H_